package com.eduhzy.ttw.commonsdk.entity;

import com.google.gson.annotations.SerializedName;

/**
 * @author xubo
 * @date 2018/9/25 16:36
 */
public class WXPayData {


    /**
     * orderInfo : {"appid":"wxc99d5e7664019645","noncestr":"OpOyeG1o2z885iH2","package":"Sign=WXPay","partnerid":"1514545301","prepayid":"wx261632201660558b73f6eba33440737325","sign":"54B0512978971A9CB2DC19A408340158","timestamp":1537950740}
     * code : 0
     * orderId : 1537949622066570
     */

    private OrderInfoBean orderInfo;
    private int code;
    private String orderId;

    public OrderInfoBean getOrderInfo() {
        return orderInfo;
    }

    public void setOrderInfo(OrderInfoBean orderInfo) {
        this.orderInfo = orderInfo;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public static class OrderInfoBean {
        /**
         * appid : wxc99d5e7664019645
         * noncestr : OpOyeG1o2z885iH2
         * package : Sign=WXPay
         * partnerid : 1514545301
         * prepayid : wx261632201660558b73f6eba33440737325
         * sign : 54B0512978971A9CB2DC19A408340158
         * timestamp : 1537950740
         */

        private String appid;
        private String noncestr;
        @SerializedName("package")
        private String packageX;
        private String partnerid;
        private String prepayid;
        private String sign;
        private String timestamp;

        public String getAppid() {
            return appid;
        }

        public void setAppid(String appid) {
            this.appid = appid;
        }

        public String getNoncestr() {
            return noncestr;
        }

        public void setNoncestr(String noncestr) {
            this.noncestr = noncestr;
        }

        public String getPackageX() {
            return packageX;
        }

        public void setPackageX(String packageX) {
            this.packageX = packageX;
        }

        public String getPartnerid() {
            return partnerid;
        }

        public void setPartnerid(String partnerid) {
            this.partnerid = partnerid;
        }

        public String getPrepayid() {
            return prepayid;
        }

        public void setPrepayid(String prepayid) {
            this.prepayid = prepayid;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(String timestamp) {
            this.timestamp = timestamp;
        }

        @Override
        public String toString() {
            return "{\n" +
                    "    \"noncestr\": \"" + noncestr + "\",\n" +
                    "    \"partnerid\": \"" + partnerid + "\",\n" +
                    "    \"appid\":\"" + appid+ "\"," +
                    "    \"package\": \"Sign=WXPay\",\n" +
                    "    \"prepayid\": \"" + prepayid + "\",\n" +
                    "    \"sign\": \"" + sign + "\",\n" +
                    "    \"timestamp\": \"" + timestamp + "\"\n" +
                    "}";
        }
    }

}
